package com.qfedu.lc.api.user;


import com.qfedu.lc.api.user.feigin.SmsLogService;
import com.qfedu.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/api")
@Controller
public class SmsLogController {


    @Autowired
    private SmsLogService smsLogService;

    @GetMapping("/sms/sendrcode")
    @ResponseBody
    public R senRegisterCode(String phone){
        return  smsLogService.sendRcode(phone);
    }



}